package com.mengwen.backstage.mapper;



import com.mengwen.backstage.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface AdminMapper {


    @Select("SELECT * FROM admin WHERE openid = #{openid}")
    public Admin findByOpenid(String openid);
    @Select("SELECT * FROM admin WHERE account_number = #{accountNumber} AND password = #{md5Password}")
    Admin login(String accountNumber, String md5Password);
}
